package com.example.Housekeeping.service.impl;

import com.example.Housekeeping.domain.HousekeepingUser;
import com.example.Housekeeping.mapper.HousekeepingUserMapper;
import com.example.Housekeeping.service.HousekeepingUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 服务层
 */
@Service
public class HousekeepingUserServiceImpl implements HousekeepingUserService {

    @Autowired
    private HousekeepingUserMapper housekeepingUserMapper;
    /**
     * 查询用户
     * @param housekeepingUser
     * @return
     */
    @Override
    public List<HousekeepingUser> selectHousekeepingUser(HousekeepingUser housekeepingUser) {
        return housekeepingUserMapper.selectHousekeepingUser(housekeepingUser);
    }

    /**
     * 新增用户
     * @param housekeepingUser
     */
    @Override
    public void insertHousekeepingUser(HousekeepingUser housekeepingUser) {
        housekeepingUserMapper.insertHousekeepingUser(housekeepingUser);
    }

    /**
     * 修改用户
     * @param housekeepingUser
     */
    @Override
    public void updateHousekeepingUserById(HousekeepingUser housekeepingUser) {
        housekeepingUserMapper.updateHousekeepingUserById(housekeepingUser);
    }

    /**
     * 删除用户
     * @param id
     */
    @Override
    public void delHousekeepingUserById(String id) {
        housekeepingUserMapper.delHousekeepingUserById(id);
    }
}


